package my_annotation.demo2;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Animal {
    private String name;
    private int age;
    private String food;

    @Anno(method = "eat")
    public void eat(){
        System.out.println("一只" + age + "的" + name + "在吃" + food);
    }
}
